package com.example.demo.controller;


import com.example.demo.dto.LogQueryRequest;
import com.example.demo.dto.LogResponse;
import com.example.demo.service.AuthLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/authlog")
public class AuthLogController {
    @Autowired
    private AuthLogService authLogService;
    @PostMapping("/list")
    public LogResponse getLogs(@RequestBody LogQueryRequest request) {
        return authLogService.getLogs(request);
    }
}